﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class STaskRoutineTaskTaskInfo extends IMessageBase
    {
        public var taskcode:int;
        public var star:int;
        public var color:int;
        public var beingHelp:int;
        public var completeTime:int;
        public var rewards:Array;
        public var refreshHistory:Array;
        public const _type:int = 16012;
        public static var _regist:STaskRoutineTaskTaskInfo = new STaskRoutineTaskTaskInfo(true);

        public function STaskRoutineTaskTaskInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new STaskRoutineTaskTaskInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.taskcode);
            param1.writeInt(this.star);
            param1.writeInt(this.color);
            param1.writeInt(this.beingHelp);
            param1.writeInt(this.completeTime);
            SeqRewardHelper.write(param1, this.rewards);
            SeqTaskRoutineTaskRefreshInfoHelper.write(param1, this.refreshHistory);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.taskcode = param1.readInt();
            this.star = param1.readInt();
            this.color = param1.readInt();
            this.beingHelp = param1.readInt();
            this.completeTime = param1.readInt();
            this.rewards = SeqRewardHelper.read(param1);
            this.refreshHistory = SeqTaskRoutineTaskRefreshInfoHelper.read(param1);
            return;
        }// end function

    }
}
